package net.sxnic.jhitem.itemssmb.action;

import net.sxnic.jhitem.itemssmb.ItemSsmb;

import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Description:  [一句话描述该类的功能]
 * @Author [姓名] [联系方式]
 * @CreateDate:
 * @UpdateDate:   
 * @Version 1.0
 */
 
public class Edit extends ItemSsmbAction{
	private static final long serialVersionUID = 1L;
    
	private static Logger logger = LoggerFactory.getLogger(Edit.class);
    
	private String ssmbId;
	
	public String execute() throws Exception {
		
		setJspPath(id);
		ssmbList = itemSsmbManager.findListByBaseinfoId(id);
		if(StringUtils.isNotBlank(ssmbId)){
			itemSsmb = itemSsmbManager.get(ssmbId);
		}else
			itemSsmb = new ItemSsmb();
		return SUCCESS;
	}
	
	public String getSsmbId() {
		return ssmbId;
	}
	public void setSsmbId(String ssmbId) {
		this.ssmbId = ssmbId;
	}
   
}
